﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DragonSolution.Web.Data.Entity
{
    /// <summary>
    /// 分类实体
    /// </summary>
    public class Category
    {
        /// <summary>
        /// 分类ID
        /// </summary>
        [Key]
        public int CategoryID { set; get; }
        /// <summary>
        /// 分类Code
        /// </summary>
        public string CategoryCode { set; get; }
        /// <summary>
        /// 分类名称
        /// </summary>
        public string CategoryName { set; get; }
        /// <summary>
        /// 父级分类ID
        /// </summary>
        public int ParentID { set; get; }
        /// <summary>
        /// 父级分类Code
        /// </summary>
        public int ParentCode { set; get; }
        /// <summary>
        /// 所属科目（如：产品分类=1，新闻分类=2）
        /// </summary>
        public int SubjectID { set; get; }
        /// <summary>
        /// 是否已删除（已删除=1，未删除=0）
        /// </summary>
        public int IsDelete { set; get; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { set; get; }
    }
}
